package com.hand.demo.domain.entity;

/**
 * @author yufan.yao@hand-china.com 2023/9/24 20:46
 */
public class FileUpload {
    private long organization = 0L;
    /**
     * 桶名,在“文件上传配置”中配置的“分组”
     */
    private String bucketName;
    /**
     * 目录，在“文件上传配置”中配置的“上传目录”
     */
    private String directory;
    // 附件UUID
    private String attachmentUUID;
    private String fileName = "DEMO_FILENAME";
    private String fileType = "DEMO_FILETYPE";
    /**
     * 存储配置编码,在“文件存储配置”中配置的“存储编码”
     */
    String storageCode;

    public FileUpload() {
    }

    public FileUpload(long organization, String bucketName, String directory, String attachmentUUID, String fileName, String fileType, String storageCode) {
        this.organization = organization;
        this.bucketName = bucketName;
        this.directory = directory;
        this.attachmentUUID = attachmentUUID;
        this.fileName = fileName;
        this.fileType = fileType;
        this.storageCode = storageCode;
    }

    public long getOrganization() {
        return organization;
    }

    public void setOrganization(long organization) {
        this.organization = organization;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getDirectory() {
        return directory;
    }

    public void setDirectory(String directory) {
        this.directory = directory;
    }

    public String getAttachmentUUID() {
        return attachmentUUID;
    }

    public void setAttachmentUUID(String attachmentUUID) {
        this.attachmentUUID = attachmentUUID;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getStorageCode() {
        return storageCode;
    }

    public void setStorageCode(String storageCode) {
        this.storageCode = storageCode;
    }
}
